home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / utility / tbox11.zip / UTILS.DOC < prev    next >
Text File  |  1992-04-14  |  101KB  |  2,265 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.                              BINARY TOOLSHED
  10.  
  11.  
  12.  
  13.  
  14.                                  UTILITIES
  15.  
  16.  
  17.  
  18.  
  19.                                 USER MANUAL
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.                             *
  31.                           *   *
  32.                         *       *
  33.                       *           *               The
  34.                     *               *
  35.                   *                   *           Binary
  36.                  *                     *
  37.                  *                     *          Toolshed
  38.                  *                     *
  39.                  *                     *
  40.                  *  ******             *
  41.                  *        *            *
  42.                  *        *            *          Version 1.1
  43.                  *        *            *          April 14, 1992
  44.                  *        *            *
  45.                  *        *            *
  46.                   ********             *
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.                              TABLE OF CONTENTS
  56.  
  57.     1.0 INTRODUCTION......................................................1
  58.     1.1 General...........................................................1
  59.     1.2 System Requirements and Installation..............................2
  60.     1.3 Other Manuals.....................................................3
  61.  
  62.     2.0 BTSPATCH..........................................................4
  63.  
  64.     3.0 DIRS..............................................................6
  65.  
  66.     4.0 DRIVES............................................................9
  67.  
  68.     5.0 MAKEBAT..........................................................11
  69.  
  70.     6.0 ONPATH...........................................................14
  71.  
  72.     7.0 TOASCII..........................................................15
  73.  
  74.     8.0 TREE.............................................................16
  75.  
  76.     9.0 VIEW.............................................................24
  77.  
  78.     10.0 WI..............................................................32
  79.  
  80.  
  81.     APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY.................38
  82. BTS Utilities User Manual                                            Page 1
  83. ___________________________________________________________________________
  84.  
  85.  
  86.  
  87. 1.0 INTRODUCTION
  88.  
  89. 1.1 General
  90.  
  91.     This manual describes a number of utility programs that are available
  92.     from The Binary Toolshed (BTS).  They accomplish a variety of
  93.     functions, many of which are not available through DOS or elsewhere.
  94.     While these programs can be used in conjunction with the ToolBOX and
  95.     TBOXCFG programs, they are independent and are capable of being used on
  96.     their own.
  97.  
  98.     The utility programs, are:
  99.  
  100.            BTSPATCH Provides the capability to set the default command line
  101.                     arguments for all Binary Toolshed programs.
  102.  
  103.           *DIRS     Displays disk space utilization for directory branches.
  104.                     It produces the cumulative totals for a directory and
  105.                     all of its descendants.
  106.  
  107.           *DRIVES   Displays disk drive parameters for all assigned drives.
  108.                     The presentation includes drive types, volume names,
  109.                     capacities, and free space available.
  110.  
  111.           *MAKEBAT  Creates batch files based on a template data file and a
  112.                     file match specification for applicable files.
  113.  
  114.           *ONPATH   Determines if specified files are accessible through
  115.                     the DOS PATH variable.
  116.  
  117.            TOASCII  Converts text files that use the extended IBM PC
  118.                     character set to use the standard 95 printable ASCII
  119.                     characters.
  120.  
  121.            TREE     Graphically displays the directory structure.  The user
  122.                     can  cursor through this structure to change director-
  123.                     ies or examine files.
  124.  
  125.            VIEW     Displays the contents of text files for viewing or
  126.                     browsing.
  127.  
  128.           *WI       A 'WhereIs' program.  Finds specified files wherever
  129.                     they are located on the disk drive(s), and optionally
  130.                     carries out an operation on those files.
  131.  
  132.  
  133.                          * these programs are only provided with the
  134.                            registered version of the ToolBOX/TBOXCFG
  135.                     program.
  136.  
  137.     These utilities are described in detail, starting alphabetically in
  138.     Section 2.0.
  139.  
  140.     The VIEW program can be used to examine the contents of this document.
  141. BTS Utilities User Manual                                            Page 2
  142. ___________________________________________________________________________
  143.  
  144.  
  145.     If your current printer does not support line drawing and other
  146.     extended characters, use the TOASCII program to make a version of this
  147.     document that is compatible with your printer.
  148.  
  149.     Refer to the BTS General Product Overview Manual for a description of
  150.     conventions that are common to all BTS program products, including the
  151.     utilities.  The manual also contains a glossary of the terms and
  152.     documentation conventions that are used throughout The Binary Toolshed
  153.     manuals.
  154.  
  155.  
  156.  
  157. 1.2 System Requirements and Installation
  158.  
  159.  
  160.     Refer to the BTS General Product Overview Manual for a more detailed
  161.     description of the system requirements and installation procedures.
  162.  
  163.  
  164.     System requirements:
  165.  
  166.           o    any DOS version, 3.0 through 5.0
  167.  
  168.           o    any video card - MDA, CGA, EGA, or VGA
  169.  
  170.  
  171.     Installation procedure:
  172.  
  173.           o    copy each of the utilities to a directory on the PATH.
  174.  
  175.           o    it may be advantageous to move the data file that is
  176.                created the first time the TREE program is run.  Refer to
  177.                the TREE documentation in Section 8.
  178.  
  179.           o    use the BTSPATCH and TBOXCFG programs to personalize the
  180.                operation of each program as desired.
  181.  
  182.  
  183.  
  184. BTS Utilities User Manual                                            Page 3
  185. ___________________________________________________________________________
  186.  
  187.  
  188. 1.3 Other Manuals
  189.  
  190.      For additional information, refer to:
  191.  
  192.           STRTHERE.DOC   Quick summary of the BTS program capabilities.
  193.  
  194.           ORDRINFO.DOC   Product support information - a description of the
  195.                          shareware concept, when to register and the
  196.                          advantages in doing so, warranty and support
  197.                          terms, and site license prices.
  198.  
  199.           GENERAL.DOC    Information that is common to all of the Binary
  200.                          Toolshed products; including packing information,
  201.                          installation, common program conventions, setup
  202.                          instructions for the sample datafiles provided, a
  203.                          glossary of applicable terms, and a series of
  204.                          questions and answers for many of the issues that
  205.                          arise during operation of the Binary Toolshed
  206.                          products.
  207.  
  208.           TBOX.DOC       User Manual for the main ToolBOX shell program.
  209.  
  210.           TBOXCFG.DOC    User Manual for the TBOXCFG configuration program.
  211.                          This program produces configuration files that are
  212.                          used by the ToolBOX program, as well as to a
  213.                          lesser extent the VIEW and TREE utilities.
  214.  
  215. BTS Utilities User Manual                                 (BTSPATCH) Page 4
  216. ___________________________________________________________________________
  217.  
  218.  
  219. 2.0 BTSPATCH                                                           V1.1
  220. ___________________________________________________________________________
  221.  
  222.     PURPOSE:   Inserts a default set of command line arguments into any of
  223.                the Binary Toolshed programs.
  224.  
  225.  
  226.     USAGE:     btspatch progName [=progName_argument_list]
  227.  
  228.                where:
  229.  
  230.                     progName  BTS program to be patched.  The.exe extension
  231.                               is assumed.
  232.  
  233.                     =progName_argument_list
  234.                               the arguments to be used as the default
  235.                               settings for progName.
  236.  
  237.  
  238.     SUMMARY:   The utility program inserts (patches) the text after the
  239.                equal sign directly into the specified program - this must
  240.                be a Binary Toolshed program.  The arguments are stored as
  241.                entered, no validation is performed.  The effective result
  242.                is that these programs operate as if this text was entered
  243.                at the start of their command line each time the program is
  244.                executed.
  245.  
  246.                BTSPATCH displays:
  247.                     o the Binary Toolshed program name and version number
  248.                     o the previously stored argument settings
  249.                     o the new settings that are being inserted
  250.  
  251.                If the =progName_argument_list is omitted, BTSPATCH just
  252.                displays the previously existing settings.
  253.  
  254.                When the program is patched a backup copy of the original is
  255.                made with a .BAK extension.
  256.  
  257.  
  258.     EXAMPLE:   1) Set the default video parameters and a configuration file
  259.                   for the ToolBOX program.
  260.  
  261.                       btspatch tbox =-ve43 -cg @c:\bin\data\my.cfg
  262.  
  263.                       BTSPATCH V1.1 (c) 1992 - The Binary Toolshed
  264.  
  265.                       Program           : TBOX V1.10 (Unregistered Version)
  266.                       Current arguments : -ve43 -xt
  267.                       New argument list : -ve43 -cg @c:\bin\data\my.cfg
  268.  
  269.  
  270. BTS Utilities User Manual                                 (BTSPATCH) Page 5
  271. ___________________________________________________________________________
  272.  
  273.  
  274.                2) Change the default for the number of levels displayed for
  275.                   the DIRS program to one.  Note the original factory
  276.                   defaults are not actually stored as command line
  277.                   arguments.
  278.  
  279.                       btspatch dirs =-l1
  280.  
  281.                       BTSPATCH V1.1 (c) 1992 - The Binary Toolshed
  282.  
  283.                       Program           : DIRS V1.00
  284.                       Current arguments :
  285.                       New argument list : -l1
  286.  
  287.  
  288. BTS Utilities User Manual                                     (DIRS) Page 6
  289. ___________________________________________________________________________
  290.  
  291.  
  292. 3.0 DIRS                                                               V1.0
  293. ___________________________________________________________________________
  294.  
  295.     PURPOSE:   Displays the physical disk space allocated to a directory
  296.                branch, i.e. a directory and all of its subdirectories.
  297.  
  298.  
  299.     USAGE:     dirs  path -l# -[pP] -[sS]
  300.  
  301.                where (all arguments are optional):
  302.  
  303.                     path      the root directory to start the display from.
  304.                               The default is the current directory on the
  305.                               current drive.
  306.  
  307.                     -l#       where # indicates the maximum number of
  308.                               displayed levels.  # may range from 1 to 16
  309.                               with a default of 7.  Files for lower levels
  310.                               that are not displayed are still incorporated
  311.                               into the cumulative totals.
  312.  
  313.                     -p / -P   determines if DIRS should Pause after each
  314.                               complete output screen.  Default is pause:-P.
  315.  
  316.                     -s / -S   determines if the Summary report should be
  317.                               inhibited.  Default is no summary report:-S.
  318.  
  319.                The default is equivalent to: dirs .\ -l7 -P -S
  320.  
  321.  
  322.     SUMMARY:   Graphically shows the directory tree with the cumulative
  323.                space used by a directory and all of its subordinates.
  324.  
  325.                Entries within each level are listed alphabetically.
  326.  
  327.                All byte totals are in terms of integral cluster units.
  328.                That is, the unused space (slackspace) at the end of the
  329.                last allocated cluster for each file is included in the
  330.                total sizes.
  331.  
  332.                The main report contains three columns.  The first displays
  333.                the directory tree.  The second column identifies the total
  334.                space allocated by the directory to the left, INCLUDING all
  335.                of its subdirectories.  The third column identifies the
  336.                number of files and disk space used within the single
  337.                directory.
  338.  
  339.                The optional summary report contains two sections, one for
  340.                the drive and one for the branch.
  341.  
  342.                The drive portion is essentially self explanatory showing
  343.                the volume name, total capacity, free space (in bytes and as
  344.                a percentage), and the cluster size (the minimum allocation
  345.                unit size).  If the path started from the drive root, a
  346.                fourth line is displayed showing the drive space that is
  347. BTS Utilities User Manual                                     (DIRS) Page 7
  348. ___________________________________________________________________________
  349.  
  350.  
  351.                unavailable for file allocation.  This includes space
  352.                allocated to bad blocks as well as directories.  For hard
  353.                disks this is typically in the order of 1 to 2%, while
  354.                network drives are usually much higher in the 10 to 15%
  355.                range.
  356.  
  357.                The branch portion of the report pertains specifically to
  358.                the information associated with the displayed branch: total
  359.                number of directories, files, and allocated bytes, as well
  360.                as the portion of the total drive used.  The last line shows
  361.                the slack space within the branch - the cumulative total of
  362.                the unusable space at the end of the files.  This varies
  363.                considerably, usually being higher with greater proportions
  364.                of smaller files.
  365.  
  366.  
  367. BTS Utilities User Manual                                     (DIRS) Page 8
  368. ___________________________________________________________________________
  369.  
  370.  
  371.     EXAMPLE:   To display the data for drive c: for two directory levels
  372.                starting from the root, and to include a summary report:
  373.  
  374.  
  375.                dirs c:\ /s /l2
  376.  
  377.                Directory branch for - C:\
  378.  
  379.                \              32,360,448                30,720 in   3 files
  380.                ├─BIN             3,502,080           2,863,104 in 278 files
  381.                │ ├─DATA              313,344           313,344 in  34 files
  382.                │ ├─DOC               139,264           139,264 in   5 files
  383.                │ └─OLD               186,368           186,368 in  19 files
  384.                ├─DEV             2,390,016           2,390,016 in  21 files
  385.                ├─DOS               585,728             585,728 in  44 files
  386.                ├─PKG            25,694,208                   0 in   0 files
  387.                │ ├─LNL               129,024           129,024 in   9 files
  388.                │ ├─MAVIS             544,768           544,768 in   7 files
  389.                │ ├─MSC6            1,705,984           886,784 in  65 files
  390.                │ ├─PCPLUS          1,155,072           980,992 in  52 files
  391.                │ ├─PCTOOLS         1,777,664         1,777,664 in  63 files
  392.                │ ├─PM-PLUS         1,034,240         1,034,240 in 108 files
  393.                │ ├─QB              2,000,896           786,432 in  81 files
  394.                │ ├─QC              2,918,400         2,404,352 in  23 files
  395.                │ ├─TCPP            1,503,232         1,169,408 in  25 files
  396.                │ ├─WIN3            5,822,464         3,250,176 in 103 files
  397.                │ ├─WINWORD         1,155,072         1,155,072 in 202 files
  398.                │ ├─WORKS           2,748,416         2,654,208 in  92 files
  399.                │ ├─WP              2,807,808         1,828,864 in  30 files
  400.                │ └─XY                391,168           391,168 in  13 files
  401.                └─SYS               157,696             157,696 in  19 files
  402.  
  403.                Drive     : Volume - C:(SYS)
  404.                          : 33,449,984 total with 667,648 bytes free (2.0%)
  405.                          : Cluster size 2,048 bytes
  406.                          : 421,888 (1.3%) unavailable for file allocation
  407.  
  408.                Branch    : 32,360,448 bytes in 1,698 files, and 50 dirs
  409.                          : Occupies 96.7% of the total drive
  410.                          : Slack space 2,100,550 bytes or 6.5%
  411.  
  412. BTS Utilities User Manual                                   (DRIVES) Page 9
  413. ___________________________________________________________________________
  414.  
  415.  
  416. 4.0 DRIVES                                                             V1.1
  417. ___________________________________________________________________________
  418.  
  419.     PURPOSE:   Displays parameters for all of the allocated disk drives.
  420.  
  421.  
  422.     USAGE:     drives [-f]
  423.  
  424.                where:
  425.  
  426.                     -f        include diskette data in the report
  427.  
  428.  
  429.     SUMMARY:   Produces a report with a summary line for each allocated
  430.                logical drive in the system.
  431.  
  432.                If the -f option is not specified, the particular diskette
  433.                drive type is determined but the drive is not physically
  434.                accessed.  With the -f argument, the diskette drives must
  435.                have valid diskettes mounted.  Fields that are not available
  436.                because the diskette was not accessed are shown as ---.
  437.  
  438.                Information contained within the report includes:
  439.  
  440.                     drive     where multiple drive letters all reference
  441.                               the same physical drive, only one line is
  442.                               produced.  This can occur through the DOS
  443.                               SUBST command or a network mapping.
  444.  
  445.                     capacities   for each drive, the total capacity and the
  446.                               free space, as a percentage and in MegaBytes
  447.                               (1 MegaByte = 1,024,000 bytes).
  448.  
  449.                     type      whether a hard disk, ramdisk, network drive,
  450.                               Stacker (the pseudo drive created by the
  451.                               STACKER disk compression program), or one of
  452.                               the six diskette types (if the -f option is
  453.                               used, this is the type of the diskette,
  454.                               otherwise it is the type of the drive).
  455.  
  456.                     volume    disk drive name.
  457.  
  458.                Following the report are totals for the total capacity, and
  459.                free space (Mb and %).  These totals do not include the
  460.                diskette drives or ramdisks, and each physical disk is only
  461.                included once.
  462.  
  463. BTS Utilities User Manual                                  (DRIVES) Page 10
  464. ___________________________________________________________________________
  465.  
  466.  
  467.  
  468.     EXAMPLE:   Display parameters for currently assigned drives.  Do not
  469.                physically access the diskette drives:
  470.  
  471.                  DRIVES
  472.  
  473.                          free    used   capacity
  474.                  drive   (Mb)     (%)     (Mb)       type     volume name
  475.                  ─────  ──────   ─────  ────────   ────────  ────────────
  476.                    a:     ---     ---     1.20    1.2Mb 5¼   ---
  477.                    b:     ---     ---     0.36    360KB 5¼   ---
  478.                    c:    1.23    96.3    32.67    Hard Disk  SYS
  479.                    d:    4.96    85.2    32.67    Hard Disk  WRK
  480.                    e:    0.07    92.8     0.97    Hard Disk  TINYDRIV.E
  481.                    f:    0.08    81.3     0.41    Ram Disk   MS-RAMDR.IVE
  482.              g: j: y:    8.83    96.4   246.29    Net Drive  USR
  483.           h: w: x: z:   10.48    95.6   238.80    Net Drive  PUBLIC
  484.                    k:    2.34    99.0   225.28    Net Drive  DEV
  485.                    l:   17.09    93.6   262.13    Net Drive  NET-WRK
  486.                    m:   15.00    80.2    75.78    Net Drive  VCS
  487.                        ══════   ═════  ═══════
  488.                         59.99    94.7  1112.88
  489.  
  490.  
  491. BTS Utilities User Manual                                 (MAKEBAT) Page 11
  492. ___________________________________________________________________________
  493.  
  494.  
  495. 5.0 MAKEBAT                                                            V1.1
  496. ___________________________________________________________________________
  497.  
  498.     PURPOSE:   Creates batch files based on a template file and a selection
  499.                of files from a specified directory.
  500.  
  501.  
  502.     USAGE:     MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  503.  
  504.                where:
  505.  
  506.                     [d:][path]matchlist
  507.                               selection criteria for files to be applied
  508.                               to the template.
  509.  
  510.                     @template.ext
  511.                               a template file containing text lines with
  512.                               embedded variables that reference selected
  513.                               files.  If not provided, the input is
  514.                               assumed to come from STDIN.  No standard
  515.                               extension is used.
  516.  
  517.                     -arg1 -arg2 . . .
  518.                               these arguments (stripped of the - prefix)
  519.                               are used by variable references within the
  520.                               template file.
  521.  
  522.  
  523.     SUMMARY:   While intended for creating batch files, the facility can be
  524.                used for a variety of purposes.  The basic operation is that
  525.                for each file specified by the match list, the text lines
  526.                from the template (or STDIN) are copied to STDOUT.  Each of
  527.                the text lines within the template may contain variables (of
  528.                the form $x) which are replaced with some attribute of the
  529.                matched file.
  530.  
  531.                Within the template file, whether it was an actual file or
  532.                STDIN, each line is processed once for each selected file
  533.                except for lines prefixed with "[" or "]".  These are
  534.                processed once only, before and after the balance of the
  535.                template processing respectively.
  536.  
  537. BTS Utilities User Manual                                 (MAKEBAT) Page 12
  538. ___________________________________________________________________________
  539.  
  540.  
  541.                The text lines within the template file can contain two
  542.                letter variables consisting of a "$" followed by a letter.
  543.                These are similar to the <CTRL x> variables available within
  544.                ToolBOX.  The variables, which can reference the current
  545.                path or the matchlist path, are:
  546.  
  547.                     $D  current drive letter
  548.                     $P  current path
  549.                     $d  matchlist drive letter
  550.                     $p  matchlist path
  551.                     $n  filename (to 8 characters)
  552.                     $x  extension (to 3 characters)
  553.                     $f  minimized file name (for $d:$p\$n.$x)
  554.                     $$  a single literal $
  555.  
  556.                Variables can also reference the optional arguments
  557.                specified on the command line:
  558.  
  559.                     $1   the first argument -arg1
  560.                     $2   the second argument -arg2
  561.                     ...
  562.                     $9   the ninth argument
  563.  
  564.                When using STDIN, type <CTRL Z> to terminate the input data.
  565.  
  566.                A summary line is produced showing the number of input
  567.                lines, files, and output lines.  This is issued to STDERR so
  568.                that it will not be redirected.
  569.  
  570.  
  571.     EXAMPLE:   Assume a template file (MAKEBAT.TST) containing:
  572.  
  573.                     [LEADING LINE
  574.                     ]TRAILING LINE
  575.                     TESTING - CURRENT DRIVE      : $$D = $D
  576.                             - CURRENT PATH       : $$P = $P
  577.                             - REFERENCED DRIVE   : $$d = $d
  578.                             - REFERENCED PATH    : $$p = $p
  579.                             - REFERENCED NAME    : $$n = $n
  580.                             - REFERENCED .EXT    : $$x = $x
  581.                             - MINIMIZED FILENAME : $$f = $f
  582.                             - arg1               : $$1 = $1
  583.                             - arg2               : $$2 = $2
  584.                             - arg3               : $$3 = $3
  585.                             - arg4               : $$4 = $4
  586.  
  587. BTS Utilities User Manual                                 (MAKEBAT) Page 13
  588. ___________________________________________________________________________
  589.  
  590.  
  591.                Now execute the following command from the d:\utl directory.
  592.                Assume this matches two files, TBOX.EXE and TBOX.DOC.
  593.  
  594.                  >makebat c:\bin\tbox.* @makebat.txt -first -second -third
  595.  
  596.                The summary line is
  597.  
  598.                     Lines in 13:   Files matched 2:    Lines output 34
  599.  
  600.                The output to STDOUT is:
  601.  
  602.                     LEADING LINE
  603.                     TESTING - CURRENT DRIVE      : $D = D
  604.                             - CURRENT PATH       : $P = \UTL
  605.                             - REFERENCED DRIVE   : $d = C
  606.                             - REFERENCED PATH    : $p = \BIN
  607.                             - REFERENCED NAME    : $n = TBOX
  608.                             - REFERENCED .EXT    : $x = DOC
  609.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.DOC
  610.                             - arg1               : $1 = first
  611.                             - arg2               : $2 = second
  612.                             - arg3               : $3 = third
  613.                             - arg4               : $4 =
  614.                     TESTING - CURRENT DRIVE      : $D = D
  615.                             - CURRENT PATH       : $P = \UTL
  616.                             - REFERENCED DRIVE   : $d = C
  617.                             - REFERENCED PATH    : $p = \BIN
  618.                             - REFERENCED NAME    : $n = TBOX
  619.                             - REFERENCED .EXT    : $x = EXE
  620.                             - MINIMIZED FILENAME : $f = C:\BIN\TBOX.EXE
  621.                             - arg1               : $1 = first
  622.                             - arg2               : $2 = second
  623.                             - arg3               : $3 = third
  624.                             - arg4               : $4 =
  625.                     TRAILING LINE
  626.  
  627.  
  628. BTS Utilities User Manual                                  (ONPATH) Page 14
  629. ___________________________________________________________________________
  630.  
  631.  
  632. 6.0 ONPATH                                                             V1.0
  633. ___________________________________________________________________________
  634.  
  635.     PURPOSE:   Determines if any files, and which ones, will be accessed
  636.                through the search path.
  637.  
  638.     USAGE:     ONPATH  matchlist [=setvariable] ...
  639.  
  640.                where:
  641.  
  642.                     matchlist      list of one or more file specifications
  643.                                    to be searched for.
  644.  
  645.                     =setvariable   alternate set variable in place of PATH.
  646.  
  647.  
  648.     SUMMARY:   ONPATH will search through the directories in the PATH
  649.                variable to find the files identified in the matchlist.  The
  650.                search is carried out in the same order as the DOS search
  651.                for program names; that is the current directory and then
  652.                the PATH directories starting from the first.  A summary
  653.                line is displayed as each valid file match is detected.
  654.  
  655.                If multiple matches for programs occur, it is the first that
  656.                would be executed if the program name were entered without a
  657.                path specification.  Also, if multiple executable files are
  658.                found within the same directory, DOS gives precedence to the
  659.                .COM, then .EXE, and finally the .BAT variation.
  660.  
  661.                While the default is to search the PATH variable, any
  662.                alternate set variable that follows the same format can be
  663.                specified: for example =LIB, =TMP, or =INCLUDE.  =PATH is
  664.                assumed if no other set variables are referenced.
  665.  
  666.  
  667.     EXAMPLE:   To find all files on the PATH which start with "tbox"
  668.                followed by anything, and which have any extension:
  669.  
  670.                     onpath tbox*
  671.  
  672.                         120,466 Jly14/92 12:29 D:\BIN\TBOX.DOC
  673.                          57,723 Jly14/92 01:00 D:\BIN\TBOX.EXE
  674.                          50,367 Jly14/92 01:12 D:\BIN\TBOXCFG.EXE
  675.  
  676.  
  677. BTS Utilities User Manual                                 (TOASCII) Page 15
  678. ___________________________________________________________________________
  679.  
  680.  
  681. 7.0 TOASCII                                                            V1.1
  682. ___________________________________________________________________________
  683.  
  684.     PURPOSE:   Filter for converting text files with IBM extended
  685.                characters to standard ASCII text.
  686.  
  687.     USAGE:     toascii  <input  >output
  688.  
  689.     SUMMARY:   The primary purpose of this utility is to make text files
  690.                that contain line drawing and other extended characters,
  691.                acceptable for printers that only support standard ASCII
  692.                characters.  This applies for example to the text of this
  693.                document as well as data output by the DRIVES and DIRS
  694.                utilities.
  695.  
  696.                The TOASCII utility program translates text from STDIN to
  697.                STDOUT.  Embedded characters that are outside the standard
  698.                ASCII text range are translated to the closest equivalent
  699.                within the range.  The acceptable ASCII characters are those
  700.                in the range 32 through 126, plus carriage return, linefeed,
  701.                tab and EOF.
  702.  
  703.                The general translations performed are:
  704.  
  705.                     o line drawings to | - or +
  706.                     o accented characters to the unaccented equivalent
  707.                     o numeric type characters to #
  708.                     o shaded and bullet characters to #
  709.                     o all other characters to ?
  710.  
  711.                Substitutions are always one for one; the file size will not
  712.                change.
  713.  
  714.  
  715.     EXAMPLE:   1) To convert this document to a file containing only
  716.                   standard ASCII characters:
  717.  
  718.                      toascii <utils.doc  >utils.asc
  719.  
  720.  
  721.                2) To convert this document directly to the printer:
  722.  
  723.                      toascii <utils.doc  >prn
  724.  
  725.  
  726.                3) Use pipes to produce a paginated ASCII screen version of
  727.                   the DIRS program output:
  728.  
  729.                      dirs \ /p | toascii | more
  730. BTS Utilities User Manual                                    (TREE) Page 16
  731. ___________________________________________________________________________
  732.  
  733.  
  734. 8.0 TREE                                                               V1.1
  735. ___________________________________________________________________________
  736.  
  737.     PURPOSE:   Full screen program to provide a visual representation of a
  738.                directory structure.
  739.  
  740.     USAGE:     tree path @cfgfile -Dpath  -V[b m c s e v]  -C[m c g]
  741.                     -X[a#][c][dD][i][t#][uU]
  742.  
  743.                where (all arguments are optional):
  744.  
  745.                     path      initial display drive and/or directory.
  746.                               Defaults to current directory.
  747.  
  748.                     @cfgfile  full configuration pathname.  Color and
  749.                               default-command-line- argument components
  750.                               are used.
  751.  
  752.                     -Dpath    directory for BTS-TREE.DAT.  Defaults to
  753.                               first directory on PATH.
  754.  
  755.                     -Video[bIOS mONOCHROME sNOW cGA eGA vGA]
  756.                               Refer to the VIEW utility in Section 9.0
  757.                               for details.  No argument is provided
  758.                               for screen lines as TREE automatically
  759.                               adapts to the DOS setting, whether 25, 43,
  760.                               or 50 lines.
  761.  
  762.                     -Color[mONOCHROME cOLOR gRAYSCALE]
  763.                               Refer to the VIEW utility in Section 9.0
  764.                               for details.
  765.  
  766.  
  767.                     -X        eXecute flags (Default = -Xa15Dt7U)
  768.  
  769.                          a#        Audio, where # enables error sounds for
  770.                                    1(border) + 2(syntax) + 4(execution)
  771.                                    +8 (directory screen update).
  772.  
  773.                          c         force Current drive tree initialization.
  774.  
  775.                          d / D     use Datafile.
  776.  
  777.                          i         force Initialization of all drive trees.
  778.  
  779.                          t#        set filelist update wait Time
  780.                                    (tenths/sec).
  781.  
  782.                          u / U     Update datafile enable.
  783.  
  784.  
  785. BTS Utilities User Manual                                    (TREE) Page 17
  786. ___________________________________________________________________________
  787.  
  788.  
  789.     SUMMARY:   The TREE utility provides a windowed visual representation
  790.                of the disk directory structure.  Commands are provided to:
  791.  
  792.                     o scroll through the directory structure.
  793.  
  794.                     o change the display to an alternate drive.
  795.  
  796.                     o move to a particular directory.
  797.  
  798.                     o display the list of files within a directory, or view
  799.                       the contents of individual files.
  800.  
  801.  
  802.                GENERAL OPERATION
  803.                _________________
  804.  
  805.                As shown in the following sample screen, the TREE window
  806.                overlays the central portion of the DOS screen.  The display
  807.                consists of three separate subwindows.  At any time, the
  808.                active cursor is in either the Directory Tree or the File
  809.                List window.  The three windows are:
  810.  
  811.                     Top Header
  812.  
  813.                          Shows the current drive and volume name, time,
  814.                          free space on the current drive (as a percentage),
  815.                          and the full directory path for the directory at
  816.                          the current cursor position.
  817.  
  818.                          It also contains the byte total for the files in
  819.                          the File List window - see below.
  820.  
  821.                     Directory Tree
  822.  
  823.                          This lower left window pictorially displays the
  824.                          directory tree structure.  The entry for the
  825.                          currently selected cursor position is highlighted,
  826.                          and a diamond () is placed to the left of the
  827.                          current directory.  Directory entries within each
  828.                          level are ordered alphabetically.
  829.  
  830.                     File List
  831.  
  832.                          This lower right window displays an alphabetical
  833.                          list of the files within the directory at the
  834.                          current Directory Tree cursor position.  This data
  835.                          changes each time the Directory Tree window cursor
  836.                          is moved.  See below for a complete explanation.
  837.  
  838.                By default, when the utility is initially started the
  839.                display shows the current drive with the cursor at the
  840.                current directory.  The command line "path" argument can be
  841.                used to override this initial default drive and/or path.
  842.  
  843. BTS Utilities User Manual                                    (TREE) Page 18
  844. ___________________________________________________________________________
  845.  
  846.  
  847.                       ┌Free 1% ─────── C:(SYS) ──────13:01:38┐
  848.                       │ \DOS                         540,004 │
  849.                       └──────────────────────────────────────┘
  850.                       ╔════════════════════════╗╔════════════╗
  851.                       ║├─BIN                   ║║ANSI.SYS    ║
  852.                       ║│ ├─DATA                ║║APPEND.EXE  ║
  853.                       ║│ └─DOC                 ║║ASSIGN.COM  ║
  854.                       ║├─DEV                   ║║ATTRIB.EXE  ║
  855.                       ║├DOS                   ║║BASRUN.EXE  ║
  856.                       ║├─PKG                   ║║BRUN30.EXE  ║
  857.                       ║│ ├─LNL                 ║║CHKDSK.COM  ║
  858.                       ║│ ├─MAVIS               ║║COMMAND.COM ║
  859.                       ║│ ├─MSC6                ║║COMMAND.ORG ║
  860.                       ║│ │ └─LIB-DATA          ║║COMMAND.PIF ║
  861.                       ║│ ├─PCPLUS              ║║COMP.COM    ║
  862.                       ║│ │ ├─1200B             ║║CURRENT.STS ║
  863.                       ║│ │ ├─CFG               ║║DEBUG.COM   ║
  864.                       ║│ │ └─DATA              ║║DISKCOMP.COM║
  865.                       ║│ ├─PCTOOLS             ║║DISKCOPY.COM║
  866.                       ╚════════════════════════╝╚════════════╝
  867.  
  868.                The optional command line argument "@cfgfile" specifies a
  869.                configuration file as created by TBOXCFG.EXE.  The color
  870.                settings and default-command-line-arguments within this file
  871.                are used, with all other settings being discarded.  Any
  872.                required path or extension for the configuration file must
  873.                be explicitly specified.
  874.  
  875.                On startup, the Directory Tree window is active.  Subse-
  876.                quently the user can switch back and forth between the
  877.                Directory Tree and File List windows, with the active window
  878.                being indicated by the highlighted border.
  879.  
  880.                <F1> can be entered at any time.  It produces several Help
  881.                screens of information that describe the available keyboard
  882.                controls and command line arguments.  Use <ESC> to terminate
  883.                the Help screens.
  884.  
  885.                Enter <ESC> or <ALT q> to exit from the program without
  886.                making any directory changes.  No verification prompts are
  887.                issued.
  888.  
  889.  
  890. BTS Utilities User Manual                                    (TREE) Page 19
  891. ___________________________________________________________________________
  892.  
  893.  
  894.                DIRECTORY TREE WINDOW
  895.                _____________________
  896.  
  897.                Within the Directory Tree window, the user has a number of
  898.                single key commands available:
  899.  
  900.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>,
  901.                     <HOME><HOME>, <END><END>
  902.  
  903.                          These vertical motion commands move the cursor for
  904.                          the selected directory.  The motion is independent
  905.                          of the actual tree structure.  For example <DOWN>
  906.                          moves to the next adjacent directory, regardless
  907.                          of whether it is at the same, or a higher or lower
  908.                          level.
  909.  
  910.                     <RIGHT>
  911.  
  912.                          Activate the File List window with data for the
  913.                          directory selected at the current cursor.
  914.  
  915.                     <RETURN>
  916.  
  917.                          Change the current drive and directory to the
  918.                          directory at the selected cursor position, and
  919.                          then exit from the TREE program.
  920.  
  921.                     <SHIFT UP>, <SHIFT DOWN>
  922.  
  923.                          Move to the previous or next directory respect-
  924.                          ively that exists at the same level as the current
  925.                          directory cursor.
  926.  
  927.                     <SHIFT LEFT>, <SHIFT RIGHT>
  928.  
  929.                          Move to the next directory at a higher (i.e.
  930.                          parent) or lower (i.e. first subdirectory) level
  931.                          respectively.
  932.  
  933.                     <mid keypad 5>
  934.  
  935.                          Equivalent to <SHIFT UP> and <SHIFT DOWN> above
  936.                          except moves in same direction as the previously
  937.                          used cursor key.
  938.  
  939.                     <letter>
  940.  
  941.                          Fast directory find.  Cursor is moved to the next
  942.                          directory that starts with the entered letter
  943.                          (actually any valid filename character).  Case is
  944.                          not significant.  The directory tree is treated as
  945.                          a circular list with automatic wrap around.
  946.  
  947. BTS Utilities User Manual                                    (TREE) Page 20
  948. ___________________________________________________________________________
  949.  
  950.  
  951.                     <CTRL letter>
  952.  
  953.                          Switch the tree display to the drive represented
  954.                          by the letter.  For example, <CTRL D> to move to
  955.                          drive D.  An error tone is issued if the requested
  956.                          drive does not exist.
  957.  
  958.                     <keypad ->, <keypad +>
  959.  
  960.                          The TREE utility maintains a list of the last
  961.                          accessed disk drives.  These keys update the
  962.                          display in a circular manner respectively to the
  963.                          next previous or oldest drive in the list.
  964.  
  965.                     <CTRL PGDN>, <CTRL PGUP>
  966.  
  967.                          These keys update the display to the next adjacent
  968.                          logical disk drive - alphabetically down or up
  969.                          respectively.  This sequence automatically wraps
  970.                          around after the lowest or highest drive.  For
  971.                          example, if the user is on drive B: and only
  972.                          drives A:, B:, and C: exist, then successively
  973.                          entering <CTRL RIGHT> cycles to C:, A:, B:, C:,
  974.                          A:, and so on.
  975.  
  976.                Refer to the General Product Overview Manual for alternate
  977.                keys for the <SHIFT cursor> and <mid pad 5> keystrokes which
  978.                may not be available on all PCs.
  979.  
  980.                FILE LIST WINDOW
  981.                _________________
  982.  
  983.                The File List window contains an alphabetical list of the
  984.                files for the directory identified by the cursor location in
  985.                the Directory Tree window.
  986.  
  987.                The File List window can be in any of three states:
  988.  
  989.                     Not-used
  990.  
  991.                          To prevent unnecessary disk activity and screen
  992.                          updates, the File List window is not updated until
  993.                          the user stops scrolling through the directory
  994.                          tree for a predefined duration.  By default this
  995.                          is seven tenths of a second, or slightly higher
  996.                          than the default initial keyboard repeat rate.  To
  997.                          suit personal tastes, this duration can be changed
  998.                          to a higher or lower rate by the -Xt# command line
  999.                          argument.
  1000.  
  1001.                          When Not-used, the File List window is clear and
  1002.                          the Tree Directory window border is highlighted.
  1003.                          The directory total in the header window is
  1004.                          blanked.
  1005.  
  1006. BTS Utilities User Manual                                    (TREE) Page 21
  1007. ___________________________________________________________________________
  1008.  
  1009.  
  1010.                     Filled-in
  1011.  
  1012.                          The File List window is filled-in with an alpha-
  1013.                          betical list of the files when the time delay for
  1014.                          the deferred update expires.  The Directory Tree
  1015.                          window is still active.
  1016.  
  1017.                          At this time the directory total field in the
  1018.                          header is set to the total number of bytes for all
  1019.                          files within the directory.  The field is set to
  1020.                          "No files" if there are no files.
  1021.  
  1022.                          There is a current maximum of 400 files within the
  1023.                          window.  If this is exceeded, the first 400 are
  1024.                          used, the error tone is issued, and a "*" is
  1025.                          placed after the total field in the header.
  1026.  
  1027.                     Active
  1028.  
  1029.                          If there is a need to view a file, see the file
  1030.                          list quicker, or scroll through the file list,
  1031.                          then activate the File List window.  Do this by
  1032.                          entering <RIGHT> from the Tree Directory window.
  1033.                          If the window is not already filled-in the file
  1034.                          list is initially updated as above.  The active
  1035.                          File List window is identified by the highlighted
  1036.                          border and a cursor on the initial file entry.
  1037.  
  1038.                          Scroll through the file list as desired.  As for
  1039.                          the Tree Directory window, enter <any letter> as a
  1040.                          fast file find.  The cursor will move to the next
  1041.                          file entry that starts with the entered letter.
  1042.  
  1043.                          To view the file at the cursor, enter <RETURN>.
  1044.                          This will initiate the VIEW.EXE utility.
  1045.  
  1046.                          Enter <LEFT> to return to and reactivate the Tree
  1047.                          Directory window.
  1048.  
  1049.  
  1050.                BTS-TREE.DAT Data File
  1051.                ______________________
  1052.  
  1053.                To optimize speed, the utility maintains a data file with
  1054.                the most recent representation of the directory structure
  1055.                for all drives.  This file, BTS-TREE.DAT, is automatically
  1056.                updated as required to reflect changes in the directory
  1057.                structure.
  1058.  
  1059.                The first time the TREE utility is run, it will create the
  1060.                file in the first directory that exists on the PATH.  A
  1061.                window message is generated indicating where this data file
  1062.                is being created.  On subsequent times, the utility searches
  1063.                the current and then PATH directories for this data file.
  1064.                After the data file is initially created you may wish to
  1065. BTS Utilities User Manual                                    (TREE) Page 22
  1066. ___________________________________________________________________________
  1067.  
  1068.  
  1069.                move it to another directory on the PATH.  Especially if the
  1070.                first directory corresponds to a ramdisk.
  1071.  
  1072.                The -Dpath command line argument can be used to explicitly
  1073.                specify a directory for the BTS-TREE.DAT file.  If the file
  1074.                does not exist in this directory, it will be created.
  1075.  
  1076.                The -Xd command line argument inhibits use of the data file.
  1077.                With this setting, the data file is ignored and the disk
  1078.                structure is re-analyzed in its entirety each time a new
  1079.                drive tree is displayed.
  1080.  
  1081.  
  1082.                DATA FILE UPDATES
  1083.                _________________
  1084.  
  1085.                Normally, changes within the directory tree structure are
  1086.                automatically detected and adjusted for.  The tree
  1087.                information for the drives is initially read from the BTS-
  1088.                TREE.DAT file.  Each time the file list window is updated,
  1089.                the accompanying directories are compared to the BTS-
  1090.                TREE.DAT version.  If there is a difference, this branch of
  1091.                the tree is automatically updated.  An audible tone, best
  1092.                characterized as a "sproing", is issued when the update
  1093.                occurs.  The BTS-TREE.DAT file is updated with all such
  1094.                changes prior to displaying the next drive.
  1095.  
  1096.                Two command line -X subarguments are available for control-
  1097.                ling the use of the BTS-TREE.DAT datafile:
  1098.  
  1099.                     [dD]
  1100.  
  1101.                          This argument specifies whether to use (-XD) or
  1102.                          not use (-Xd) the BTS-TREE.DAT data file.  If not,
  1103.                          then each time the directory tree is displayed, it
  1104.                          is created by analyzing the entire disk structure.
  1105.                          This is considerably slower than reading the
  1106.                          equivalent information from the BTS-TREE.DAT file;
  1107.                          however, it does guarantee that the entire direct-
  1108.                          ory tree information is correct immediately.
  1109.  
  1110.                          The directory information for removable diskettes
  1111.                          is never stored in the BTS-TREE.DAT file.  It is
  1112.                          always created directly from the directory
  1113.                          structure on the diskette.
  1114.  
  1115.                     [uU]
  1116.  
  1117.                          Controls whether the BTS-TREE.DAT file is to be
  1118.                          updated (-XU) or not (-Xu) with the changes
  1119.                          detected for any of the directories.  Note the
  1120.                          screen display is always updated, this option just
  1121.                          controls whether the changes are to be recorded.
  1122.                          This feature is useful if there are temporary
  1123.                          drive reassignments.
  1124. BTS Utilities User Manual                                    (TREE) Page 23
  1125. ___________________________________________________________________________
  1126.  
  1127.  
  1128.  
  1129.                     [c]
  1130.  
  1131.                          Requests that the directory tree for the current
  1132.                          drive be updated immediately before the program
  1133.                          starts.  This is useful if there are known changes
  1134.                          that can be handled up front rather than waiting
  1135.                          for each to be detected individually later.
  1136.  
  1137.                     [i]
  1138.  
  1139.                          Requests that the directory tree for all drives be
  1140.                          updated immediately.
  1141.  
  1142.  
  1143.                The BTS-TREE.DAT updates identified above can be requested
  1144.                at any time through the keyboard by:
  1145.  
  1146.                     <ALT c>
  1147.  
  1148.                          Update the directory tree for the current drive.
  1149.                          This is similar to the -xc command line argument.
  1150.  
  1151.                     <ALT i>
  1152.  
  1153.                          Update the directory trees for all non-removable
  1154.                          drives.  This is similar to the -xi command line
  1155.                          argument.
  1156.  
  1157.  
  1158.  
  1159.     EXAMPLE:   To start the TREE program for drive d: with the cursor
  1160.                starting at the \dos directory, disabling the audible tones
  1161.                for syntax errors and the automatic directory updates,
  1162.                using color information from the c:\bin\my.cfg configuration
  1163.                file, and using the c:\data\bts-tree.dat data file:
  1164.  
  1165.                     tree d:\dos -xa5 @c:\bin\my.cfg -Dc:\data
  1166.  
  1167.  
  1168. BTS Utilities User Manual                                    (VIEW) Page 24
  1169. ___________________________________________________________________________
  1170.  
  1171.  
  1172. 9.0 VIEW                                                               V1.1
  1173. ___________________________________________________________________________
  1174.  
  1175.     PURPOSE:   Provides a mechanism for viewing the contents of text files.
  1176.  
  1177.     USAGE:     view [d:][path]matchlist @cfgfile
  1178.                  -V[b m c s e v][25 43 50]  -C[m c g]  -X[a#][iI][rR]
  1179.  
  1180.                where (all arguments are optional):
  1181.  
  1182.                     [d:][path]matchlist
  1183.                               specification for one or more files to be
  1184.                               viewed.  There are no assumed extensions.
  1185.  
  1186.  
  1187.                     @cfgfile  full configuration pathname.  Color, command-
  1188.                               line-argument, and banner name components are
  1189.                               used.  No default extensions are assumed.
  1190.  
  1191.                     -V[b m c s e v] [25 43 50]
  1192.  
  1193.                               By default, VIEW will select a video mode
  1194.                               applicable to the hardware and DOS state at
  1195.                               program startup.  The -V argument is used to
  1196.                               override this selection in order to use a
  1197.                               different monitor type (m,c,s,e,v), to use a
  1198.                               different output technique (b,s) or to alter
  1199.                               the screen resolution (25, 43, 50).
  1200.  
  1201.                          b    use BIOS output routines.  Normally video
  1202.                               data is issued directly to the video card.
  1203.                               Using the BIOS will slow down the video
  1204.                               update rate but may be necessary for some
  1205.                               incompatible systems.
  1206.  
  1207.                          m    assume monochrome text (MDA) video card.
  1208.  
  1209.                          c, e, or v
  1210.                               assume color graphics (CGA, EGA, or VGA)
  1211.                               video card.  All 3 settings have the same
  1212.                               effect.
  1213.  
  1214.                          s    assume CGA graphics video card and do
  1215.                               processing to remove snow on screen.  This
  1216.                               option slows down the update rate and should
  1217.                               be avoided unless necessary.
  1218.  
  1219.                          25   assume 25 visible lines of text.
  1220.  
  1221.                          43   assume EGA/VGA card and use the 43 line by 80
  1222.                               column mode.
  1223.  
  1224.                          50   assume VGA card and use the 50 line by 80
  1225.                               column mode.
  1226.  
  1227. BTS Utilities User Manual                                    (VIEW) Page 25
  1228. ___________________________________________________________________________
  1229.  
  1230.  
  1231.                -C[m c g]
  1232.  
  1233.                     Selects one of the predefined color tables.  If the
  1234.                     argument is not specified the current video hardware
  1235.                     configuration is examined and m or c assumed.  Any
  1236.                     setting can be used with any monitor.  Also, there is
  1237.                     no connection between the -C and -V settings.
  1238.  
  1239.                          m    monochrome text displays.
  1240.  
  1241.                          c    color displays.
  1242.  
  1243.                          g    gray scale displays, that is LCD or mono-
  1244.                               chrome monitors using color video cards.
  1245.                               This is greatly affected by the particular
  1246.                               combination of video card and display device.
  1247.  
  1248.  
  1249.                -X        eXecute flags (Default = -Xa7cir)
  1250.  
  1251.                          a#        Audio, where # enables error sounds for
  1252.                                    1(border) + 2(syntax) + 4(execution)
  1253.  
  1254.                          c / C     make text searches Case sensitive.
  1255.  
  1256.                          iI        exit Immediately without a verification
  1257.                                    prompt when <ESC> is entered.  <ALT q>
  1258.                                    always exits immediately, regardless
  1259.                                    of this setting.
  1260.  
  1261.                                    The I setting is primarily for the use
  1262.                                    of the ToolBOX and TREE programs which
  1263.                                    "appear" to integrate VIEW into their
  1264.                                    interface.
  1265.  
  1266.                          r / R     Restore the original DOS screen on exit,
  1267.                                    the alternative (r) being to leave the
  1268.                                    VIEW screen unaltered.
  1269.  
  1270.  
  1271. BTS Utilities User Manual                                    (VIEW) Page 26
  1272. ___________________________________________________________________________
  1273.  
  1274.  
  1275.     SUMMARY:   The VIEW utility provides a convenient mechanism for
  1276.                scrolling through the contents of a text file.  As
  1277.                illustrated in the following sample screen, the utility
  1278.                produces a full screen display of the text.  Commands are
  1279.                available to:
  1280.  
  1281.                     o scroll through the text contents, vertically and
  1282.                       horizontally
  1283.  
  1284.                     o search for specific text strings
  1285.  
  1286.                     o specify and view additional text files
  1287.  
  1288.                     o alter screen parameters
  1289.  
  1290.                While optimized for standard text in lines of less than 78
  1291.                characters, VIEW can be used to examine binary information.
  1292.  
  1293.  
  1294.  
  1295.     ╒═The Binary Toolshed ════════ VIEW ══════════ Tue Jly 14/92 23:12:54═╕
  1296.     │                                                                     │
  1297.     │This is a sample text file.  The text lines demonstrate the use of   │
  1298.     │the VIEW.EXE utility to examine or browse the contents of such a     │
  1299.     │data file.                                                           │
  1300.     │                                                                     │
  1301.     │The ┌───────────────────────────┐le up to the available memory limit.│
  1302.     │It a│File list          <ALT f> │lection, and text searches.         │
  1303.     │    │set file Matchlist <ALT m> │                                    │
  1304.     │    │Next┌──Enter filename matchlist──────────────┐                  │
  1305.     │    │Prev│sample2.txt                             │                  │
  1306.     │    │Sear└────────────────────────────────────────┘                  │
  1307.     │    │set search Case            │                                    │
  1308.     │    │set search Direction       │                                    │
  1309.     │    └───────────────────────────┘                                    │
  1310.     │                                                                     │
  1311.     │                                                                     │
  1312.     │                                                                     │
  1313.     │                                                                     │
  1314.     │                                                                     │
  1315.     │                                                                     │
  1316.     │                                                                     │
  1317.     │                                                                     │
  1318.     │                                                                     │
  1319.     ╘═SAMPLE.TXT═════════ Jly14/92 23:12══════════════════════(8)       8═╛
  1320.  
  1321.     EXAMPLE VIEW SCREEN : Popup Menu With Text Entry Window For Matchlist
  1322.  
  1323.  
  1324.  
  1325. BTS Utilities User Manual                                    (VIEW) Page 27
  1326. ___________________________________________________________________________
  1327.  
  1328.  
  1329.                GENERAL OPERATION
  1330.                _________________
  1331.  
  1332.                The VIEW screen contains status information on the top and
  1333.                bottom border lines.
  1334.  
  1335.                All of the file specific data is contained on the bottom
  1336.                line.  This includes the data file pathname, the last
  1337.                modification date, and on the lower right the line number of
  1338.                the last line on the screen.  If the last line number in the
  1339.                file is known, it is shown in parenthesis just to the left
  1340.                of this number.  Rather than reading all of the data
  1341.                initially, VIEW only reads subsequent sections of the data
  1342.                file when warranted.  A "***READING**" status indicator is
  1343.                shown on the bottom line when this occurs.  Only when the
  1344.                last line of the file has been been read will the parenthe-
  1345.                sized number appear.  If no data file is open, then the
  1346.                bottom status line is blank.
  1347.  
  1348.                While viewing the text file, the user has a number of single
  1349.                key commands available:
  1350.  
  1351.                     <F1>
  1352.  
  1353.                          Produces several Help screens of information that
  1354.                          describe the available keyboard controls and the
  1355.                          command line arguments.  Use <ESC> to terminate
  1356.                          the Help screens.
  1357.  
  1358.                     <UP>, <DOWN>, <PG UP>, <PG DN>, <HOME>, <END>
  1359.  
  1360.                          These vertical motion commands move the screen
  1361.                          view in the anticipated direction - by one line,
  1362.                          one page, or to the extreme limits of the file.
  1363.  
  1364.  
  1365.                     <LEFT>, <RIGHT>
  1366.  
  1367.                          Normally the text window displays the first 78
  1368.                          characters of each line.  Text past column 78 can
  1369.                          be viewed by entering <RIGHT>.  This scrolls the
  1370.                          entire display right by 10 characters.  When the
  1371.                          text is scrolled right, the maximum line number
  1372.                          field on the bottom line is replaced by an
  1373.                          indicator for how far right the window is scroll-
  1374.                          ed.  For example if the screen is scrolled right
  1375.                          by two steps, then the field shows "(COLS+020)" to
  1376.                          indicate the viewable screen is actually showing
  1377.                          columns 21 through 98 of each line.  Use <LEFT> to
  1378.                          scroll back.
  1379.  
  1380.  
  1381.                     <ALT f>, <ALT m>, <keypad +>, <keypad ->
  1382.  
  1383.                          See the following File Operations section.
  1384. BTS Utilities User Manual                                    (VIEW) Page 28
  1385. ___________________________________________________________________________
  1386.  
  1387.  
  1388.  
  1389.  
  1390.                     <Alt g>, <ALT s>, <RETURN>, <CTRL RETURN>, <character>
  1391.  
  1392.                          See the Goto/Search Operations section.
  1393.  
  1394.                     </>
  1395.  
  1396.                          See the Popup Menu section.
  1397.  
  1398.  
  1399.                     <ALT 2>, <ALT 4>, <ALT 5>, <ALT 0>
  1400.  
  1401.                          These commands set the number of screen lines for
  1402.                          the VIEW display - to 25, 43, and 50 lines
  1403.                          respectively.  The <ALT 0> setting restores the
  1404.                          screen lines to the same setting DOS had when the
  1405.                          VIEW program was started.
  1406.  
  1407.                     <ESC>
  1408.  
  1409.                          Exit from the VIEW program.  Unless the "-XI"
  1410.                          command line argument is set, this key will
  1411.                          initiate a verification window to ensure the exit
  1412.                          is actually desired.  If there are additional
  1413.                          files in the current file list (see File
  1414.                          Operations below), then an option is also provided
  1415.                          in the verification window to open any of these
  1416.                          files.
  1417.  
  1418.                          <ESC> is also used to escape from the current
  1419.                          operation; whether entering search text or a
  1420.                          matchlist specification, or the popup menu.
  1421.  
  1422.                     <ALT q>
  1423.  
  1424.                          Exit from the VIEW program immediately.  No
  1425.                          verification prompt is issued.
  1426.  
  1427.                The single text file as described here, appears on startup
  1428.                if a single file was specified on the command line.
  1429.                Additional initial windows occur if no files, or multiple
  1430.                files, were specified on the command line.  For these
  1431.                conditions refer to the <ALT m> and <ALT f> explanations in
  1432.                the following File Operation section.
  1433.  
  1434.                Error windows will be generated if read errors occur or if
  1435.                the file size exceeds the available memory limit (for
  1436.                systems with a full complement of memory, this is typically
  1437.                in excess of 500KB).
  1438.  
  1439.  
  1440. BTS Utilities User Manual                                    (VIEW) Page 29
  1441. ___________________________________________________________________________
  1442.  
  1443.  
  1444.                FILE OPERATIONS
  1445.                _______________
  1446.  
  1447.                While VIEW is only capable of displaying one file at a time,
  1448.                it is possible to specify multiple files through a matchlist
  1449.                specification.  These can then be viewed in sequence.
  1450.  
  1451.                The file operation commands are:
  1452.  
  1453.                     <ALT m>
  1454.  
  1455.                          Enter a new file matchlist specification.  A text
  1456.                          entry window is generated for entering the match
  1457.                          list specification.  For example:
  1458.  
  1459.                               d:\dos\!*.com !*.exe
  1460.  
  1461.                          specifies all the files in the D:\DOS directory
  1462.                          except for the executable programs.
  1463.  
  1464.                          The default specification placed within the text
  1465.                          entry window is "*".  Simply enter <RETURN> if you
  1466.                          wish to see all of the files, or overwrite this
  1467.                          with a particular matchlist specification.  The
  1468.                          window will scroll horizontally if required for a
  1469.                          long specification.
  1470.  
  1471.                          If the completed matchlist specification refer-
  1472.                          ences a single file, the file is opened
  1473.                          immediately and the text presented on the VIEW
  1474.                          screen.  If the matchlist corresponds to no files,
  1475.                          an error tone is issued and the screen is blanked.
  1476.                          Re-enter <ALT m> and the correct specification.
  1477.                          If the matchlist specification corresponds to two
  1478.                          or more files a file list window is generated -
  1479.                          see the <ALT f> explanation below.
  1480.  
  1481.                     <ALT f>
  1482.  
  1483.                          Display an alphabetical list of all files matching
  1484.                          the current matchlist specification.  Cursor
  1485.                          within this list to the desired file and enter
  1486.                          <RETURN>.  This closes the current file, if any,
  1487.                          and opens the new one.  Newly opened files always
  1488.                          start with line one, column one in the upper left
  1489.                          corner of the screen.
  1490.  
  1491.                     <keypad +>, <keypad ->
  1492.  
  1493.                          Open the next, or previous, file respectively in
  1494.                          the current file list; that is the files refer-
  1495.                          enced by the last matchlist specification.
  1496.  
  1497. BTS Utilities User Manual                                    (VIEW) Page 30
  1498. ___________________________________________________________________________
  1499.  
  1500.  
  1501.                GOTO AND SEARCH OPERATIONS
  1502.                __________________________
  1503.  
  1504.                These commands are provided to move through the file in a
  1505.                non-sequential manner. In particular:
  1506.  
  1507.  
  1508.                     <ALT g>  or  + - or any numeric character
  1509.  
  1510.                          Goto an absolute or relative line within the file.
  1511.                          A text entry window is provided for entering the
  1512.                          line number.  Enter a specific number to request
  1513.                          an absolute line number.  Precede the number with
  1514.                          a + or - to indicate a displacement relative to
  1515.                          the current position.  For example, enter "3,000"
  1516.                          to go to line 3000, and enter "+50" to move 50
  1517.                          lines past the current position.  Following the
  1518.                          Goto operation for an absolute line number the
  1519.                          destination line is highlighted.  For relative
  1520.                          amounts the screen is simply shifted the
  1521.                          appropriate distance (i.e. no highlighting
  1522.                          changes).
  1523.  
  1524.  
  1525.                     <ALT s>  or  any alphabetical or punctuation character
  1526.  
  1527.                          Search for a text string.  Enter the desired
  1528.                          string into the text entry window.  By default,
  1529.                          the search is case insensitive and in the forward
  1530.                          direction, but these attributes can be altered
  1531.                          through the popup menu described in the next
  1532.                          section.  The text entry window will scroll
  1533.                          horizontally for long search strings.
  1534.  
  1535.                          If the requested text is located, it will be
  1536.                          highlighted on the screen.  If the text is found,
  1537.                          but lies horizontally outside the currently
  1538.                          visible columns, the entire line will be
  1539.                          highlighted (that is rather than scrolling the
  1540.                          screen horizontally to the search text).
  1541.  
  1542.  
  1543.                     <RETURN>  or  <F3>
  1544.  
  1545.                          Repeat the last Search operation.  As for the
  1546.                          initial search, if there is a highlighted entry on
  1547.                          the screen, the search starts there - otherwise
  1548.                          from the top screen line for forward searches or
  1549.                          the bottom screen line for backward searches.  The
  1550.                          search will not cycle through from the end of the
  1551.                          file back to the beginning - use <HOME>.  The
  1552.                          search string is retained across multiple file
  1553.                          openings.
  1554.  
  1555.  
  1556. BTS Utilities User Manual                                    (VIEW) Page 31
  1557. ___________________________________________________________________________
  1558.  
  1559.  
  1560.                     <CTRL-RETURN>
  1561.  
  1562.                          Repeat the last Search operation, but in the
  1563.                          opposite direction.
  1564.  
  1565.                The Goto and Search functions have the normal single key
  1566.                activation code, but also respond to any of the ASCII keys
  1567.                entered through the keyboard.  For shortcut purposes it is
  1568.                assumed that all numeric keys are intended for the <ALT g>
  1569.                Goto function, and the other non CTRL and ALT keys are
  1570.                destined for the <ALT s> Search function.  Obviously search
  1571.                operations can start with a leading number; but for these
  1572.                explicitly enter the <ALT s> and then the numeric text.
  1573.  
  1574.  
  1575.  
  1576.                POPUP MENU
  1577.                __________
  1578.  
  1579.                The popup menu, initiated by </>, provides a means for
  1580.                setting search direction and search case sensitivity flags,
  1581.                and an alternative mechanism for many of the functions
  1582.                described above.  The popup menu command entries are shown
  1583.                below, with the equivalent keyboard key function at the
  1584.                right:
  1585.  
  1586.                     o  display file list          <ALT f>
  1587.  
  1588.                     o  enter file matchlist spec  <ALT m>
  1589.  
  1590.                     o  open next file             <keypad +>
  1591.  
  1592.                     o  open previous file         <keypad ->
  1593.  
  1594.                     o  search for text string     <ALT s>
  1595.  
  1596.                     o  set search direction
  1597.  
  1598.                     o  set search case sensitivity
  1599.  
  1600.  
  1601.  
  1602. EXAMPLE:       To start the VIEW program in 43 line mode, using the banner
  1603.                name and color information from the c:\bin\personal.cfg
  1604.                configuration file, to start with a filelist of all files
  1605.                with an extension starting with the letter "p" expect for
  1606.                files with a .pag extension, and to exit immediately on
  1607.                <ESC> without a verification window:
  1608.  
  1609.                     view -V43 *.p* !*.pag -XI @c:\bin\personal.cfg
  1610.  
  1611.  
  1612.  
  1613. BTS Utilities User Manual                                      (WI) Page 32
  1614. ___________________________________________________________________________
  1615.  
  1616.  
  1617. 10.0 WI                                                                V1.0
  1618. ___________________________________________________________________________
  1619.  
  1620.     PURPOSE:   A multi-drive file find utility that is capable of carrying
  1621.                out an arbitrary action on the located file(s).
  1622.  
  1623.     USAGE:     wi -? [drives:][path]matchlist -[pP] -d#:# -s#:# -d -s -h
  1624.                   -t -D -S -H -T -[oO] -c[#] -C[#] -x[#l#cdst] :DOS-command
  1625.  
  1626.                where (all arguments are optional):
  1627.  
  1628.                     -?        provide two complete help screens for the WI
  1629.                               command.  The first covers the search
  1630.                               criteria arguments, while the second page
  1631.                               covers arguments for the associated DOS
  1632.                               command operation.
  1633.  
  1634.                     [drives:] specification for the drives to be included
  1635.                               in the search.  This defaults to the current
  1636.                               drive if not specified.  Multiple drives can
  1637.                               be specified by concatenating the letters
  1638.                               together (e.g. cde:), by *: to indicate all
  1639.                               fixed drives, or ?: to indicate all drives,
  1640.                               whether removable or not.
  1641.  
  1642.  
  1643.                     [path]    the root of the branch (on each drive) the
  1644.                               search is to start from.  This defaults to
  1645.                               the root of the drive(s) if not stated.  To
  1646.                               start the search from the current directory,
  1647.                               enter the path as ".\".
  1648.  
  1649.  
  1650.                     matchlist
  1651.                               any valid file matchlist specification.  For
  1652.                               example:
  1653.  
  1654.                                    *.doc *.txt *.asc !known.doc
  1655.  
  1656.                               If no matchlist is provided, but a search
  1657.                               criteria is, such as a date range or file
  1658.                               attribute, then a default *.* matchlist is
  1659.                               assumed.  For example, to find all files on
  1660.                               the current drive that were modified today:
  1661.  
  1662.                                    wi -d=0
  1663.  
  1664.  
  1665.                     -p / -P   specify if there should be a Pause after each
  1666.                               complete output screen.  Default is pause:
  1667.                               -P.
  1668.  
  1669.                     -d#:#     date range search criteria in days since last
  1670.                               modification.  The #:# range specifies the
  1671.                               first through the last day to be included.
  1672. BTS Utilities User Manual                                      (WI) Page 33
  1673. ___________________________________________________________________________
  1674.  
  1675.  
  1676.                               If the first # is omitted, it is assumed to
  1677.                               be today (0), if the last # is omitted it is
  1678.                               assumed to be infinity (at least before the
  1679.                               1980 start date where life as we know it
  1680.                               began).  Commas can be inserted anywhere in
  1681.                               the numbers as desired.  As a shorthand, a
  1682.                               single specific day can be specified as =#.
  1683.                               For example:
  1684.  
  1685.                                    today's files
  1686.                                         -d0:0    or   -d:0    or   -d=0
  1687.  
  1688.                                    within the last 4 days
  1689.                                         -d:4
  1690.  
  1691.                                    more than one week old
  1692.                                         -d8:
  1693.  
  1694.                     -s#:#     file size range search criteria in bytes.
  1695.                               Commas can be inserted for legibility.  The
  1696.                               range encoding is as above for dates, for
  1697.                               example, files of 1Mb or more are specified
  1698.                               as:
  1699.                                         -s1,000,000:
  1700.  
  1701.                     -d        include subdirectory names in the search
  1702.                               operation.  Normally subdirectory names are
  1703.                               not included in the match operation.  The
  1704.                               term "file" as used here and subsequently,
  1705.                               infers files and directories if the -d
  1706.                               argument is set.  The size specification does
  1707.                               not apply to directories.
  1708.  
  1709.                     -s        include system files in the search.  Normally
  1710.                               system files are not examined.
  1711.  
  1712.                     -h        include hidden files in the search.  Normally
  1713.                               hidden files are not examined.
  1714.  
  1715.                     -t        display summary total at the completion of
  1716.                               the command.  The summary identifies the
  1717.                               number of files and or directories, and the
  1718.                               total number of bytes involved.  Without the
  1719.                               -t argument, this is only shown if more than
  1720.                               5 files are selected.
  1721.  
  1722.                     -D        include ONLY subdirectory names.  That is,
  1723.                               ignore files during the selection process.
  1724.  
  1725.                     -S        include ONLY files that have the system
  1726.                               attribute set.  Ignore normal files.
  1727.  
  1728.                     -H        include ONLY files that have the hidden
  1729.                               attribute set.  Ignore normal files.
  1730.  
  1731. BTS Utilities User Manual                                      (WI) Page 34
  1732. ___________________________________________________________________________
  1733.  
  1734.  
  1735.                     -T        display ONLY the summary total.  Do not show
  1736.                               status lines for each selected file.
  1737.  
  1738.                     -o / -O   display Output lines for selected files and
  1739.                               the summary. The -o option is similar to -T
  1740.                               except that even the summary is inhibited
  1741.                               from being displayed.  The default is to
  1742.                               always issue status lines and the summary if
  1743.                               there are more than 5 selected files: -O.
  1744.                               This command has no affect on the text issued
  1745.                               from programs initiated through the DOS-
  1746.                               command facility.
  1747.  
  1748.  
  1749.                Whereas the preceding arguments covered the search
  1750.                criteria and the presentation of the selected files, the
  1751.                following arguments determine the operations to be
  1752.                done with the selected file when the match occurs.
  1753.  
  1754.  
  1755.                     -c[#]     on completion of the search operation, change
  1756.                               directories to the drive:path associated with
  1757.                               the #th selected match.  If the # argument is
  1758.                               not specified, the first match is assumed.
  1759.  
  1760.                     -C[#]     as per -c[#] except change directories
  1761.                               immediately when the #th match occurs, rather
  1762.                               than searching for additional matches.
  1763.  
  1764.                     -x[#l#cdst]
  1765.                               execution flags for the processing of the
  1766.                               DOS-command line:
  1767.  
  1768.                                 #  maximum number of matches that are to
  1769.                                    occur before stopping.  The default is
  1770.                                    effectively infinity (don't stop due to
  1771.                                    matches).
  1772.  
  1773.                                 l# maximum number of directory levels to
  1774.                                    search.  To search only the current
  1775.                                    directory, specify -xl1
  1776.  
  1777.                                 c  before performing the command, tempor-
  1778.                                    arily change the current directory to
  1779.                                    the directory containing the selected
  1780.                                    file.
  1781.  
  1782.                                 d  only execute the command once per
  1783.                                    directory.  The command will be carried
  1784.                                    out for each directory containing at
  1785.                                    least one selection.  File variables
  1786.                                    within the command, such as $f (see
  1787.                                    below), refer to the directory
  1788.                                    containing the selections and not to the
  1789.                                    selections themselves.
  1790. BTS Utilities User Manual                                      (WI) Page 35
  1791. ___________________________________________________________________________
  1792.  
  1793.  
  1794.                                 s  show each command line executed.  Each
  1795.                                    command line, with expanded arguments,
  1796.                                    is displayed, preceded by "WI".
  1797.  
  1798.                                 t  test mode - display the command line(s)
  1799.                                    that would be executed, as for the -xs
  1800.                                    option, but don't actually execute it.
  1801.  
  1802.                     :DOS-command
  1803.                               a valid DOS command, complete with any
  1804.                               desired arguments.  The command line is
  1805.                               executed for each matched file.  In the same
  1806.                               manner as for ToolBOX and the MAKEBAT
  1807.                               programs, the command line can contain
  1808.                               embedded variables for matched filenames:
  1809.  
  1810.                                    $D  current drive letter
  1811.                                    $P  current path
  1812.                                    $d  matched drive letter
  1813.                                    $p  matched path
  1814.                                    $n  filename (to 8 characters)
  1815.                                    $x  extension(to 3 characters)
  1816.                                    $f  minimized matched filename  (for
  1817.                                        required portions of $d:$p\$n.$x)
  1818.                                    $$  a single $
  1819.  
  1820.                               If the match corresponds to a directory (e.g.
  1821.                               d:\dos), then:
  1822.  
  1823.                                    $p    corresponds to      \dos
  1824.  
  1825.                                               while
  1826.  
  1827.                                    $f    corresponds to      \dos\.
  1828.  
  1829.                               Whatever output is generated from the [DOS-
  1830.                               command] itself is not included in the
  1831.                               pagination calculation for the -P screen
  1832.                               pause option.  Text lines will likely scroll
  1833.                               off the top of the screen.
  1834.  
  1835.                The factory default is equivalent to: wi -PO
  1836.  
  1837.                For the WI arguments:
  1838.  
  1839.                     o case is only significant for options that have
  1840.                       different interpretations for the upper and lower
  1841.                       case settings.
  1842.  
  1843.                     o order is not significant, except that if it exists,
  1844.                       the :[DOS-command] argument must be the last argument
  1845.                       on the command line.
  1846.  
  1847.                     o there is no ambiguity among the arguments if they are
  1848.                       properly stated.
  1849. BTS Utilities User Manual                                      (WI) Page 36
  1850. ___________________________________________________________________________
  1851.  
  1852.  
  1853.     SUMMARY:   The wi utility searches through drives or a directory branch
  1854.                for files and/or directories that fulfill a given set of
  1855.                criteria.  As described in detail above, the search criteria
  1856.                can be any of:
  1857.  
  1858.                     o matchlist specification for filenames
  1859.  
  1860.                     o file type attributes for directories, hidden, or
  1861.                       system.
  1862.  
  1863.                     o days since last modification
  1864.  
  1865.                     o file size in bytes
  1866.  
  1867.                The search is conducted through a specified directory and
  1868.                then all of its descendant subdirectories.  Normally the
  1869.                search starts from the root directory, yielding a search of
  1870.                all directories on the disk.  Disk drives to be searched can
  1871.                be stated individually or by referring to all disk drives,
  1872.                or to all non-removable disk drives.
  1873.  
  1874.                For each file (or directory) that is selected based on the
  1875.                search criteria, a status line is generated on the screen.
  1876.  
  1877.                Optionally, it is possible to carry out an action on each of
  1878.                these selected files.  This could be as simple as changing
  1879.                the current directory to that of the selected file, or as
  1880.                complicated as can be stated within a DOS command line.
  1881.                Variables are available for referencing the selected files
  1882.                from within the DOS command line.
  1883.  
  1884.                For details refer to the argument descriptions in the USAGE
  1885.                section above.
  1886.  
  1887.  
  1888.     EXAMPLE:   1) Find all the .DAT files on the hard disks and get a total
  1889.                   of the disk space they occupy (sample output shown for
  1890.                   this example only):
  1891.  
  1892.                     wi *:*.dat
  1893.  
  1894.                    18,944  15Nov91 01:39  C:\BIN\BTS-TREE.DAT
  1895.                       672  16Oct89 07:46  C:\DEV\TBOX\MAKETEST\LINES.DAT
  1896.                   232,232  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\CONTRY.DAT
  1897.                       578  08Aug89 12:00  C:\GAMES\CARMEN\SCORES\BUBBLE.DAT
  1898.                    47,288  11Aug91 00:33  D:\PKG\PAF\PAF-DATA\INDIV2.DAT
  1899.                     2,192  12Sep88 10:38  D:\PKG\QB\QCARDS.DAT
  1900.                    25,268  21Dec90 00:00  D:\PKG\PCPLUS\MODEMS.DAT
  1901.                   302,848  18Jly90 12:00  E:\PKG\WINWORD\SYN-AM.DAT
  1902.                   188,584  18Jly90 12:00  E:\PKG\WINWORD\LEX-AM.DAT
  1903.                    24,072  18Jly90 12:00  E:\PKG\WINWORD\HYPH.DAT
  1904.                       338  18Jly90 12:00  E:\PKG\WINWORD\PCW-RTF.DAT
  1905.                10 files (633,707 bytes)
  1906.  
  1907.  
  1908. BTS Utilities User Manual                                      (WI) Page 37
  1909. ___________________________________________________________________________
  1910.  
  1911.  
  1912.                2) Find all the hidden files on the current drive and then
  1913.                   change directories to where the first one occurred:
  1914.  
  1915.                     wi /H -c
  1916.  
  1917.  
  1918.                3) Find and view the contents of all the README.DOC files on
  1919.                   all disks:
  1920.  
  1921.                     wi ?:readme.doc /xop :view $f
  1922.  
  1923.  
  1924.                4) Delete all temporary .BAK, .TMP, and .OLD files on all
  1925.                   hard disks that are at least 2 days old:
  1926.  
  1927.                     wi *:*.bak *.tmp *.old -d2: -p :del $f
  1928.  
  1929.  
  1930.                5) Copy all hard drive files that were modified today
  1931.                   (except .BAK files) to an archive directory on drive a:
  1932.  
  1933.                     wi -d=0 !*.bak :copy $f a:\save\
  1934.  
  1935.  
  1936.                6) While crude, the following example removes all empty
  1937.                   directories on the current drive.  This is done by
  1938.                   attempting to remove all directories, which only works
  1939.                   for the ones that happen to be empty.  An error message
  1940.                   is in fact generated for each directory regardless; by
  1941.                   DOS if the directory is not empty and cannot be deleted,
  1942.                   and by WI if it was deleted since WI can then no longer
  1943.                   find it to search as a descendant.  This will only remove
  1944.                   one level of empty directories at a time.  Repeat for
  1945.                   successive levels.
  1946.  
  1947.                     wi -D -p :rmdir $p
  1948.  
  1949.  
  1950.                7) For the current directory and all of it's descendant
  1951.                   directories, do a DOS dir command, if and only if, there
  1952.                   is at least one .WK1 file.  Redirect all the DIR command
  1953.                   outputs (inhibit all WI output) to a data file for later
  1954.                   examination.  Note the redirection occurs for the WI
  1955.                   command as a whole, not for the individual [DOS-
  1956.                   command]'s.
  1957.  
  1958.                     wi .\*.wk1 -xd  -p -o :dir $p >wk1dirs.txt
  1959.  
  1960.                               or equivalently
  1961.  
  1962.                     wi .\*.wk1 -xdc -p -o :dir    >wk1dirs.txt
  1963.  
  1964.  
  1965.  
  1966.  
  1967. BTS Utilities User Manual                                      (WI) Page 38
  1968. ___________________________________________________________________________
  1969.  
  1970.  
  1971. APPENDIX A : UTILITIES COMMAND LINE ARGUMENT SUMMARY
  1972.  
  1973.  
  1974.     NOTE:   -? is a valid request for help for all command line programs.
  1975.  
  1976.  
  1977.           ────────────────────────────────────────────────────────────
  1978.  
  1979.  
  1980.     USAGE: BTSPATCH program[.exe] [=new-parameter-list]
  1981.  
  1982.         WHERE:
  1983.  
  1984.           program[.exe]            any Binary Toolshed program.
  1985.  
  1986.           [=new-parameter-list]    valid set of arguments for specified
  1987.                                    program.
  1988.  
  1989.         DEFAULTS:
  1990.  
  1991.           none
  1992.  
  1993.         EXAMPLE:
  1994.  
  1995.           btspatch wi =-t
  1996.  
  1997.           ────────────────────────────────────────────────────────────
  1998.  
  1999.  
  2000.     USAGE: DIRS [path] [-l#] [-pP] [-sS]
  2001.  
  2002.         WHERE:
  2003.  
  2004.           [path]    root directory of branch to be displayed.
  2005.           -l#       maximum reported subdirectory level(s).
  2006.           -pP       pause after output screens.
  2007.           -sS       inhibit Summary report.
  2008.  
  2009.         DEFAULTS:
  2010.  
  2011.           dirs .\ -l7 -P -S
  2012.  
  2013.         EXAMPLE:
  2014.  
  2015.           dirs \workdirs -l1 /p
  2016.  
  2017.  
  2018.           ────────────────────────────────────────────────────────────
  2019.  
  2020. BTS Utilities User Manual                                      (WI) Page 39
  2021. ___________________________________________________________________________
  2022.  
  2023.  
  2024.     USAGE: DRIVES [-f]
  2025.  
  2026.         WHERE:
  2027.  
  2028.           -f        read floppy drive media.
  2029.  
  2030.         DEFAULTS:
  2031.  
  2032.           drives
  2033.  
  2034.         EXAMPLE:
  2035.  
  2036.           drives -f
  2037.  
  2038.  
  2039.           ────────────────────────────────────────────────────────────
  2040.  
  2041.  
  2042.     USAGE: MAKEBAT [d:][path]matchlist [@template.ext] [-arg1]...
  2043.  
  2044.         WHERE:
  2045.  
  2046.           [d:][path]matchlist      file selection criteria.
  2047.           [@template.ext]          template text file.  If absent, input
  2048.                                    assumed from STDIN.  Contents of temp-
  2049.                                    late file copied to STDOUT for each
  2050.                                    matched file (except for lines preceded
  2051.                                    with [ and ] which are copied as the
  2052.                                    leading and trailing lines of STDOUT
  2053.                                    respectively).  Variables within the
  2054.                                    template file are substituted for as
  2055.                                    follows based on the matched name:
  2056.  
  2057.                                         $D  current drive letter
  2058.                                         $P  current path
  2059.                                         $d  matched drive letter
  2060.                                         $p  matched path
  2061.                                         $n  filename (to 8 chars)
  2062.                                         $x  extension (to 3 chars)
  2063.                                         $f  minimized file name
  2064.                                             (for $d:$p\$n.$x)
  2065.                                         $$  a single $
  2066.  
  2067.                                    Command line arguments substituted for:
  2068.  
  2069.                                         $1  arg1
  2070.                                         $2  arg2
  2071.                                          . . .
  2072.  
  2073.           [-arg1]...               Substituted into template file as above.
  2074.            
  2075.  
  2076.         DEFAULTS:
  2077.  
  2078.           none
  2079. BTS Utilities User Manual                                      (WI) Page 40
  2080. ___________________________________________________________________________
  2081.  
  2082.  
  2083.  
  2084.         EXAMPLE:
  2085.  
  2086.           makebat *.prn @fprint.tem >fprint.bat
  2087.  
  2088.                WHERE FPRINT.TEM contains:
  2089.  
  2090.                [
  2091.                [ SAMPLE TO PRINT AND DELETE FILES
  2092.                [
  2093.                copy $f prn:
  2094.                del $f
  2095.  
  2096.  
  2097.           ────────────────────────────────────────────────────────────
  2098.  
  2099.  
  2100.     USAGE : ONPATH matchlist [=setVariable] ...
  2101.  
  2102.         WHERE:
  2103.  
  2104.           matchlist      specification for files to be located on the PATH.
  2105.  
  2106.           [=setVariable] alternative set variable [to PATH] defining the
  2107.                          directories to be searched.
  2108.  
  2109.         DEFAULTS:
  2110.  
  2111.           none
  2112.  
  2113.         EXAMPLE:
  2114.  
  2115.           onpath wp*
  2116.  
  2117.  
  2118.           ────────────────────────────────────────────────────────────
  2119.  
  2120.  
  2121. BTS Utilities User Manual                                      (WI) Page 41
  2122. ___________________________________________________________________________
  2123.  
  2124.  
  2125.     USAGE : TOASCII <pcchars.in >ascii.out
  2126.  
  2127.         WHERE:
  2128.  
  2129.           <              STDIN input file containing IBM PC 8 bit
  2130.                          characters.
  2131.  
  2132.           >              STDOUT output file containing STDIN file
  2133.                          filtered to standard ASCII scharacter values.
  2134.         DEFAULTS:
  2135.  
  2136.           none
  2137.  
  2138.         EXAMPLE:
  2139.  
  2140.           toascii <pcchars.in >ascii.out
  2141.  
  2142.  
  2143.           ────────────────────────────────────────────────────────────
  2144.  
  2145.  
  2146.     USAGE : TREE  path  @cfgfile -Dpath  -V[b m s c e v]  -C[m c g]
  2147.                   -X[a#][c][dD][i][t#][uU]
  2148.  
  2149.         WHERE (all arguments are optional):
  2150.  
  2151.           path      display drive and/or directory.
  2152.           -@cfgfile configuration file pathname.
  2153.           -Dpath    directory for BTS-TREE.DAT.
  2154.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2155.           -C        color table selection for Monochrome/Color/Grayscale.
  2156.           -X        execution flags
  2157.                        a#     Audio, WHERE # enables error sounds for
  2158.                               1(border) + 2(syntax) + 4(execution)
  2159.                               +8(automatic directory tree update).
  2160.                        c      force Current drive tree initialization.
  2161.                        d / D  use Datafile.
  2162.                        i      force Initialization of all drive trees.
  2163.                        t#     set filelist update Time (tenths/sec).
  2164.                        uU     Update datafile enable.
  2165.  
  2166.         DEFAULTS:
  2167.  
  2168.           tree .\ -Xa7Dt7U
  2169.  
  2170.         EXAMPLE:
  2171.  
  2172.           tree d:\workarea @d:\bin\mycolors.tem -Xt12
  2173.  
  2174. BTS Utilities User Manual                                      (WI) Page 42
  2175. ___________________________________________________________________________
  2176.  
  2177.  
  2178.     USAGE : VIEW [d:][path\]matchList @cfgfile -V [b m s c e v] [25 43 50]
  2179.                  -C[m c g] -X[a#][cC][iI][rR]
  2180.  
  2181.         WHERE (all arguments are optional):
  2182.  
  2183.  
  2184.           [d:][path\]matchList  filename specifications...
  2185.           @cfgfile  full configuration pathname specification.
  2186.           -V        video flags for Bios/Monochrome/Snow/Cga/Ega/Vga.
  2187.                     plus setting for number of display lines 25/43/50.
  2188.           -C        color table selection for Monochrome/Color/Grayscale.
  2189.           -X        execution flags
  2190.                         a#     Audio, WHERE # enables error sounds for
  2191.                                1(border) + 2(syntax) + 4(execution).
  2192.                         c / C  make text searches Case sensitive.
  2193.                         i / I  exit Immediately without prompt.
  2194.                         r / R  Restore DOS screen on exit.
  2195.  
  2196.         DEFAULTS:
  2197.  
  2198.           view -Xa7cir)
  2199.  
  2200.         EXAMPLE:
  2201.  
  2202.           view -V43 *.doc *.txt -XI @c:\bin\personal.cfg
  2203.  
  2204.  
  2205.           ────────────────────────────────────────────────────────────
  2206.  
  2207. BTS Utilities User Manual                                      (WI) Page 43
  2208. ___________________________________________________________________________
  2209.  
  2210.  
  2211.  
  2212.     USAGE: WI [drives:][path]matchlist  [-flags]  [:DOS-command]
  2213.  
  2214.         [drives:]        single (a:), multiple (cdf:), all (?:) or all
  2215.                          hard (*:) drive selection.
  2216.         [path]matchlist  file selection criteria.
  2217.         [flags]
  2218.  
  2219.           -?    extended help (including auxiliary DOS command).
  2220.           -pP   pause after output screens.
  2221.           -d#:# select files within range days old.
  2222.           -s#:# select files within range size bytes.
  2223.           -d    include subdirectory names.
  2224.           -s    include system files.
  2225.           -h    include hidden files.
  2226.           -t    display summary total
  2227.           -D    include ONLY subdirectory names.
  2228.           -S    include ONLY system files.
  2229.           -H    include ONLY hidden files.
  2230.           -T    display ONLY summary total.
  2231.           -oO   issue Output lines.
  2232.  
  2233.           -c[#] change dir to #th match on completion (DEFAULTS is first).
  2234.           -C[#] change dir immediately on #th match.
  2235.           -x    execution flags
  2236.                     #    maximum number of matches.
  2237.                     l#   maximum number of directory search levels.
  2238.                     c    change dir before executing cmd line.
  2239.                     d    execute command once per directory.
  2240.                     s    show each command line executed.
  2241.                     t    test mode - just display command lines.
  2242.  
  2243.           [DOS-command]  DOS command line including embedded variables for
  2244.                          matched filenames:
  2245.  
  2246.                               $D  current drive letter
  2247.                               $P  current path
  2248.                               $d  matched drive letter
  2249.                               $p  matched path
  2250.                               $n  filename (to 8 characters)
  2251.                               $x  extension(to 3 characters)
  2252.                               $f  minimized matched filename
  2253.                                      (for $d:$p\$n.$x)
  2254.                               $$  a single $
  2255.  
  2256.  
  2257.         EXAMPLE:
  2258.  
  2259.           wi dc:*.tmp *.old *.pag -d3: -opxt :del $f
  2260.  
  2261.  
  2262.           ────────────────────────────────────────────────────────────
  2263.  
  2264.  
  2265.